package com.tkjy.mapper;

import com.tkjy.pojo.Account;
import com.tkjy.pojo.Transaction;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AccountMapper {
    //账户登录
    public Account selectAccount(Account account);
    //修改密码
    public int updatePassword(@Param("password") String password,@Param("cardno") String cardno);
    //分页查询交易记录
    public List<Transaction> selectTransaction(@Param("firstDate") String firstDate, @Param("lastDate")String lastDate, @Param("cardno")String cardno, @Param("pageNo")Integer pageNo, @Param("pageSize")Integer pageSize);
    //查询总数
    public int count(@Param("firstDate") String firstDate, @Param("lastDate")String lastDate,@Param("cardno")String cardno);
    //查询转账卡号
    public Account selectCarDno(@Param("carDno") String carDno);
    //转账
    public int updateCarDno(@Param("entity")Account account);
    //记录添加
    public int insertTransaction(@Param("transaction")Transaction transaction);
}
